net/holzammer/fileio/loadfile.m

Description:

Contains functions to load a file into memory

Requirements:

Compiler: CreativE
OS: AmigaOS >=V39
CPU: >=68020

Functions:

loadfile()

Purpose: Loads a file into memory
Usage: buffer,size:=loadfile(path)
Parameters: path a STRING with the complete AmigaDOS path to the file to be loaded.
Return Values: buffer a POINTER to the memory area containing the content of the file, NIL on failure
size the size of the memory area

flushfile()

Purpose: Flushes the memory allocated by loadfile()
Usage: flushfile(buffer)
Parameters: buffer a POINTER to the memory allocated by loadfile.May be NIL.
Return Values: none